<?python
  layout_params['pageType'] = 'problems by phase'
?>
<html py:layout="'layout.kid'" xmlns:py="http://purl.org/kid/ns#">

<body>

<div py:match="item.get('id') == 'content'" id="content">

<h2>Overview for source ${rep.getSource().getName()}</h2>


<h3>Summary</h3>

<table class="vertical">
<tbody>
<tr class="skip">
  <th>skipped documents</th>
  <td class="count">${len(rep.getSkippedDocuments())}</td>
</tr>
<tr class="crit">
  <th>failed documents</th>
  <td class="count">${len(rep.getFailedDocuments())}</td>
</tr>
<tr class="warn">
  <th>successful documents with warnings</th>
  <td class="count">${len(rep.getDocumentsWithWarnings())}</td>
</tr>
<tr class="succ">
  <th>successful documents without warnings</th>
  <td class="count">${len(rep.getSuccesfulDocuments())}</td>
</tr>
<tr class="note">
  <th>total successful documents</th>
  <td class="count">${len(rep.getSuccesfulDocuments()) + len(rep.getDocumentsWithWarnings())}</td>
</tr>
</tbody>
</table>

<h3>Problem counts</h3>

<table>
<thead>
<tr>
  <th class="">phase</th>
  <th class="">skip</th>
  <th class="">fail</th>
  <th class="">warn</th>
  <th class="">note</th>
</tr>
</thead>
<tbody>
<tr py:for="phase, summary in rep.getProblemSummary()">
  <td class="">$phase</td>
  <td class="count skip">${summary['SKIP']}</td>
  <td class="count crit">${summary['CRIT']}</td>
  <td class="count warn">${summary['WARN']}</td>
  <td class="count note">${summary['NOTE']}</td>
</tr>
</tbody>
</table>



<h3>Configuration</h3>

<table class="vertical">
<tbody>
<tr>
  <th>source name</th>
  <td>${rep.getSource().getName()}</td>
</tr>
<tr>
  <th>source type</th>
  <td>${rep.getSource().getType()}</td>
</tr>
<tr>
  <th>source URLs</th>
  <td>
    <div py:for="url in rep.getSource().getUrls()">
      <a href="$url">$url</a>
    </div>
  </td>
</tr>
<tr>
  <th>domain restrictions</th>
  <td>
    <div py:for="domain in rep.getSource().getDomains()">$domain</div>
  </td>
</tr>
<tr>
  <th>default publisher</th>
  <td>${rep.getSource().getDefaultPublisher()}</td>
</tr>
<tr>
  <th>excluded file extensions</th>
  <td>
    <div py:for="ext in rep.getSource().getExcludeExt()">$ext</div>
  </td>
</tr>
<tr>
  <th>HTTP request delay (sec)</th>
  <td>${rep.getSource().getWait()}</td>
</tr>
</tbody>
</table>




</div>

</body>

</html>